package models;

import play.db.ebean.Model;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created with IntelliJ IDEA.
 * User: bjornth
 * Date: 6.4.2013
 * Time: 12:13
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class User extends Model {

    @Id
    public String email;
    public String name;
    public String password;
    public int admin;

    public User(String email, String name, String password) {
        this.email = email;
        this.name = name;
        this.password = password;
    }

    public static Finder<String,User> find = new Finder<String,User>(
            String.class, User.class
    );


}
